package com.atguigu.spzx.user.service.Impl;

import com.atguigu.spzx.model.entity.user.Region;
import com.atguigu.spzx.user.mapper.UserRegionMapper;
import com.atguigu.spzx.user.service.UserRegionService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author syh
 * @create 2023-09-04 9:59
 */
@Service
public class UserRegionServiceImpl implements UserRegionService {
    @Resource
    UserRegionMapper userRegionMapper;
    @Override
    public List<Region> findByParentCode(Long parentId) {

        return userRegionMapper.findByParentCode(parentId);
    }
}
